-- Decompiled with the Synapse X Luau decompiler.

local ClientOHOH = _G.ClientOHOH;

local M = ClientOHOH.class.new(script, ClientOHOH.files.OHOHScreenBase());



function M.new()
	return M();
end;

local LocalPlayer = game:GetService("Players").LocalPlayer;
function M.ctor(self)--构造函数
	
	M.super.ctor(self, (ClientOHOH:GetPath_Loop("ReplicatedStorage.Resource.UI.LoadingGui")));
	
	self:SetParentInstance((ClientOHOH:GetPath_Loop("PlayerGui", LocalPlayer)));
	
	self.step_funcs = {};
	self.now_step = 1;
	
end;
function M.dtor(self)--析构函数
	if self.main_inst and self.main_inst.Parent then
		self.main_inst:Destroy();
	end;
	M.super.dtor(self);
end;
local tostring = tostring;
local assert = assert;
function M.SetStepFunc(self, p4, p5)--设置步骤功能
	
	--print("SetStepFunc-->",p4,p5)

	self.step_funcs[p4] = p5;
end;

local TweenService = game:GetService("TweenService");

function M.StartLoading(self)--开始加载

	print("开始加载-->")
	self:AddProcess(function()
		for k,f in ipairs(self.step_funcs) do
			self:Wait()
			f()
		end

	end)



	
end;
return M;
